package com.cn.gateway.model;

/**
 * @author huangzz
 */
public final class CommonConstant {
    /**
     *  constant
     */
    public static final String OAUTH_BEARER_TOKEN_KEY = "Authorization";
    public static final String OAUTH_BEARER_TOKEN_PREFIX = "Bearer ";
    public static final String BASIC_TOKEN_PREFIX = "Basic ";
    public static final String HEADER_GRANT_TYPE = "Grant-Type";
    public static final String HEADER_SCOPE = "Scope";
    public static final String HEADER_GRANT_TYPE_REFRESH_TOKEN = "refresh_token";
    public static final String HEADER_GRANT_TYPE_CLIENT_CREDENTIALS = "client_credentials";
    public static final String USER_INFO_KEY = "user_id";

    public static final String HEADER_SCOPE_ALL = "all";

    /**
     * swagger resources
     */
    public static final String[] SWAGGER_RESOURCES = {"/doc.html","/webjars/**","/swagger-resources/**","/v2/api-docs","/v3/api-docs","/favicon.ico"};



    private CommonConstant(){

    }
}
